﻿using Abp.Domain.Entities;
using StockSystem.StockSystem.Customers;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace StockSystem.StockSystem.OutStocks
{
    [Table("SS_OutStockDetail")]
    public class OutStockDetail : Entity<int>
    {
        //所属于哪个OutStockSummaryId。（即这条明细属于哪个出库订单）
        [Required]
        public int OutStockSummaryId { get; set; }//外键

        [Required]
        public int GoodsId { get; set; }
        public StockSystem.Goods.Goods Goods { get; set; }


        //这种货物出库的数量
        [Required]
        public int OutStockAmount { get; set; }

        //这种货物出库的价格
        [Required]
        public Decimal OutStockPrice { get; set; }

        //总金额
        [Required]
        public Decimal OutStockSumPrice { get; set; }


    }
}
